<?php
class M_info extends Nvl_Model{
	function __construct(){
		parent::__construct();
		$this->table_name='s_info';
		$this->column_primary='info_id';
		$this->column_order='';
		$this->column_unique='info_nama';
		$this->column_active='info_aktif';
	}
	function get_info(){
		$query = $this->db->where("info_aktif","y")->limit(1)->get('s_info');
		return json_encode($query->row());
	}
}